package com.example.demo.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Gong 测试导入
 */
@Data
@Entity
@ExcelTarget("TestExcel")
public class TestExcel implements Serializable {
    @Id
    @GeneratedValue
    @JsonIgnore
    @Excel(name="编号")
    private Integer id;
    @Excel(name="姓名")
    private String name;
    @Excel(name = "生日",format = "yyyy-MM-dd")
    private Date bir;
    @Excel(name = "年龄")
    private Integer age;
    @Excel(name = "状态",replace = {"在线_1","离线_0"})
    private String zhuangTai;


}
